﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.BeforeRenderOrderAttribute
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;

#nullable disable
namespace UnityEngine
{
  /// <summary>
  ///   <para>Use this BeforeRenderOrderAttribute when you need to specify a custom callback order for Application.onBeforeRender.</para>
  /// </summary>
  [AttributeUsage(AttributeTargets.Method)]
  public class BeforeRenderOrderAttribute : Attribute
  {
    /// <summary>
    ///   <para>The order, lowest to highest, that the Application.onBeforeRender event recievers will be called in.</para>
    /// </summary>
    public int order { get; private set; }

    /// <summary>
    ///   <para>When applied to methods, specifies the order called during Application.onBeforeRender events.</para>
    /// </summary>
    /// <param name="order">The sorting order, sorted lowest to highest.</param>
    public BeforeRenderOrderAttribute(int order) => this.order = order;
  }
}
